package com.sam.util;

import java.util.Calendar;
import java.util.Date;

public class DateUtil {
    public static Date nowAddSeconds(int second) {
        Calendar newTime = Calendar.getInstance();
        newTime.setTime(new Date());
        newTime.add(Calendar.SECOND, second);//日期加10秒

        Date dt1 = newTime.getTime();
        return dt1;
    }
}
